package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.core.domain.CtbaFiasPolyline;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * FIAS的折线图分析业务对象 ctba_fias_polyline
 *
 * @author Huang
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaFiasPolyline.class, reverseConvertGenerate = false)
public class CtbaFiasPolylineBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * FIAS分析id
     */
    @NotNull(message = "FIAS分析id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fiasId;

    /**
     * 折线名
     */
    @NotBlank(message = "折线名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * echarts的xy数对
     */
    @NotBlank(message = "echarts的xy数对不能为空", groups = { AddGroup.class, EditGroup.class })
    private String data;


}
